package com.migo.service.impl;

import com.migo.dao.ZipMatchDao;
import com.migo.entity.ZipMatchEntity;
import com.migo.service.ZipMatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("zipMatchService")
public class ZipMatchServiceImpl implements ZipMatchService {
	@Autowired
	private ZipMatchDao zipMatchDao;

	@Override
	public ZipMatchEntity queryByMatchType(String matchType) {
		return zipMatchDao.queryByMatchType(matchType);
	}

	@Override
	public ZipMatchEntity queryObject(Integer id){
		return zipMatchDao.queryObject(id);
	}
	
	@Override
	public List<ZipMatchEntity> queryList(Map<String, Object> map){
		return zipMatchDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return zipMatchDao.queryTotal(map);
	}
	
	@Override
	public void save(ZipMatchEntity zipMatch){
		zipMatchDao.save(zipMatch);
	}
	
	@Override
	public void update(ZipMatchEntity zipMatch){
		zipMatchDao.update(zipMatch);
	}
	
	@Override
	public void delete(Integer id){
		zipMatchDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		zipMatchDao.deleteBatch(ids);
	}
	
}
